package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthApplyFileService;
import com.orange.modules.dao.AuthApplyFileRepository;
import com.orange.modules.entity.AuthApplyFile;

@Service
public class AuthApplyFileServiceImpl implements AuthApplyFileService{

	@Autowired
	private AuthApplyFileRepository authApplyFileRepository;

	@Override
	public void insertApplyFile(AuthApplyFile aaf) throws SQLException {
		// TODO Auto-generated method stub
		authApplyFileRepository.insertApplyFile(aaf);
	}

	@Override
	public AuthApplyFile queryAuthApplyFileBySchoolId(String schoolId,
			String loginType) throws SQLException {
		AuthApplyFile aaf = authApplyFileRepository.queryAuthApplyFileBySchoolId(schoolId, loginType);
		return aaf;
	}

	@Override
	public AuthApplyFile queryApplyFileById(String id) {
		AuthApplyFile a = authApplyFileRepository.queryApplyFileById(id);
		return a;
	}
	
}
